package ncov.model;

import java.io.Serializable;

/**
 * 导员教师职工...(Staff)实体类
 *
 * @author makejava
 * @since 2020-06-04 15:48:50
 */
public class Staff implements Serializable {
    private static final long serialVersionUID = -49653134500266161L;
    
    private Integer id;
    
    private Integer deptId;
    
    private Integer staffId;
    
    private String name;
    
    private String phone;
    
    private String email;


    // 配置双向一对多，目的是通过班级级联查询到教职工信息
    // private Set<Grade> grades = new HashSet<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    
    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }
    
    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

//    public Set<Grade> getGrades() {
//        return grades;
//    }
//
//    public void setGrades(Set<Grade> grades) {
//        this.grades = grades;
//    }

    @Override
    public String toString() {
        return "Staff{" +
                "id=" + id +
                ", deptId=" + deptId +
                ", staffId=" + staffId +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}